<?php

/**
 * @name HttpRequest
 * @author Roman Metlinskyi <r.metlinskyi@gmail.com>
 */

class HttpResponse extends Object
{

  // singleton instance
  private static $instance;

  /*
   * region: ISingleton implement
   */

  private function __construct()
  {
    $this->collection = $_REQUEST;
  }

  private function __clone()
  {

  }

  public static function HttpResponse()
  {
    return (!isset(self::$instance)) ? (self::$instance = new self()) : self::$instance;
  }

  /*
   * region: Properties [SET]
   */

  public function setMimeType($value)
  {
    header("Content-Type: {$value}");
  }

}